package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.News;
import cn.wolfcode.trip.base.query.NewsQuery;

import java.util.List;

public interface NewsMapper {
    //删
    int deleteByPrimaryKey(Long id);

    //增
    int insert(News record);

    //根据日报id获取日报对象
    News selectByPrimaryKey(Long id);

    //查所有
    List<News> selectAll();

    //修改
    int updateByPrimaryKey(News record);

    //分页
    List<News> selectForList(NewsQuery qo);

    //修改状态
    void updateState(News news);

}